﻿
(function ($) {

    $.extend({
        popPage: function (ajax, settings) {
            ajax = ajax || {};
            settings = settings || {};
            var url = ajax.url,
                data = ajax.data,
                title = ajax.title,
                w = settings.width;
            //layer 通用配置
            var common = {
                type: 1,
                title: title,
                skin: 'layui-layer-rim', //加上边框
                // maxmin: true,
                //shade: 0.3,
                area: '500px', //宽高
            };

            $.get(url, data, function (data) {
                settings.content = data;
                layer.open($.extend(common, settings));
            });
        },

    });

}(jQuery));


